//
//  UILabel+Js.h
//  CarService
//
//  Created by sixarm on 2018/5/2.
//  Copyright © 2018年 sixarm. All rights reserved.
//

#import <UIKit/UIKit.h>

@interface UILabel (Js)

/**
 *  改变行间距
 */
+ (void)setLineSpaceForLabel:(UILabel *)label WithSpace:(float)space;

/**
 *  改变字间距
 */
+ (void)setWordSpaceForLabel:(UILabel *)label WithSpace:(float)space;

/**
 *  改变行间距和字间距
 */
+ (void)setSpaceForLabel:(UILabel *)label withLineSpace:(float)lineSpace WordSpace:(float)wordSpace;



/**  给UILabel设置行间距和字间距 */
+ (void)setLabelSpace:(UILabel*)label withValue:(NSString *)str andlineSpacing:(float )lineSpacing andstrSpacing:(float )strSpacing andFont:(UIFont*)font ;

/**  计算 有字行间距的 UILabel 的高度 */
+ (CGFloat)getSpaceLabelHeight:(NSString *)str withFont:(UIFont *)font  andlineSpacing:(float )lineSpacing  andStrSpacing:(float )strSpacing andWidth:(CGFloat)width ;
@end
